const {
	http
} = uni.$u
// 获取菜单

export const http_mpWeixinLogin = (params, config = {}) => http.post('/addons/zzyy/api.login/mpWeixinLogin', params,
	config)
export const http_mpWeixinRegisterByProfileAndLogin = (params, config = {}) => http.post(
	'/addons/zzyy/api.login/mpWeixinRegisterByProfileAndLogin', params, config)
export const http_logout = (params, config = {}) => http.post('/api/user/logout', params, config)
export const http_getUserInfo = (params = {}) => http.get('/addons/zzyy/api.user/getUserInfo', params)
export const http_getUserPhoneFromMP = (params, config = {}) => http.post('/addons/zzyy/api.user/mpWeixinDecodePhone',
	params, config)
export const http_setUserInfo = (params, config = {}) => http.post('/api/user/saveUserInfo', params, config)

// ``````````

export const search_phone_api = ({
	params,
	custom
}) => http.get('/api/sm/getRowByPhone', {
	params,
	custom
})

export const submit_info_api = (params, config = {}) => http.post('/api/sm/submitRealInfo', params, config)


export const upload_api = (params) => http.upload('/api/sm/upload', {
	filePath: params.filePath
})

export const get_code_api = (params = {}) => http.get('/api/sm/faceQrcode', {
	params
})
export const wechat_result_api = (params = {}) => http.get('/api/sm/faceidResult', {
	params
})